#!/usr/bin/env python

import paho.mqtt.client as mqtt

mqttc = mqtt.Client("01-unpwd-set")

run = -1
mqttc.username_pw_set("uname", "")
mqttc.connect("localhost", 1888)
while run == -1:
    mqttc.loop()

exit(run)
